package com.cskaoyan.bean.wx_home_index;

import com.cskaoyan.bean.goods.MarketGoods;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @Description:
 * @Author: WD created on 2021-09-18 17:12
 * @Version:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class InnerFloorGoodsInnerGoods {
    private Integer id;
    private String name;
    private String brief;
    private String picUrl;
    private Boolean isNew;
    private Boolean isHot;
    private BigDecimal counterPrice;
    private BigDecimal retailPrice;


    public InnerFloorGoodsInnerGoods(MarketGoods good) {
        this.id = good.getId();
        this.name = good.getName();
        this.brief = good.getBrief();
        this.picUrl = good.getPicUrl();
        this.isNew = good.getIsNew();
        this.isHot = good.getIsHot();
        this.counterPrice = good.getCounterPrice();
        this.retailPrice = good.getRetailPrice();

    }
}
